


//
//  ZYAddStrongCouseDetailFourModel.m
//  优学荟管理系统
//
//  Created by edz on 2017/11/27.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "ZYAddStrongCouseDetailFourModel.h"

@implementation ZYAddStrongCouseDetailFourModel
+(instancetype)courseCommentModelWithDict:(NSDictionary *)dict{
    
    return  [[self alloc]initWithDict:dict];
}

-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.content = [dict objectForKey:@"content"];
        
        self.createTime = [dict objectForKey:@"createTime"];
        
        self.ID = [dict objectForKey:@"id"];
        
        self.satisfy = [dict objectForKey:@"satisfy"];
        
        //评论人字典
        NSDictionary *posterDict = [dict objectForKey:@"poster"];
        
        self.uid = [posterDict objectForKey:@"uid"];
        
        self.username = [posterDict objectForKey:@"username"];
        
        self.avatar = [posterDict objectForKey:@"avatar"];
        
        //回复人
        NSDictionary *replyDict = [dict objectForKey:@"reply"];
        
        self.replyContent = [replyDict objectForKey:@"content"];
        
        self.replyCreateTime = [replyDict objectForKey:@"createTime"];
        
        self.replyId = [replyDict objectForKey:@"id"];
        
        NSDictionary *replyerDict = [replyDict objectForKey:@"replyer"];
        
        self.replyUsername = [replyerDict objectForKey:@"username"];
        
        
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
